home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / stencilreader.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-07-23  |  1.5 KB  |  40 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef STENCILREADER_H
  8. #define STENCILREADER_H
  9.  
  10. #include <QDomElement>
  11. #include <QPixmap>
  12.  
  13. #include "scribusapi.h"
  14. #include "scribusstructs.h"
  15.  
  16. class SCRIBUS_API StencilReader
  17. {
  18. public:
  19.     StencilReader();
  20.     ~StencilReader() {};
  21.     QString createShape(QString data);
  22.     void parseGroup(QDomDocument &data, QDomElement &group, QDomNode &DOC, int groupElemCounter, int &groupElemCounter2, double Dx, double Dy);
  23.     void parseGroupProperties(QDomDocument &data, QDomElement &group, QDomNode &DOC, int &groupElemCounter, double &minXCoor, double &minYCoor, double &maxXCoor, double &maxYCoor, bool &firstCheck);
  24.     double parseUnit(const QString &unit);
  25.     const char * getCoord( const char *ptr, double &number );
  26.     bool parseSVG( const QString &s, FPointArray *ite );
  27.     void svgClosePath(FPointArray *i);
  28.     void svgMoveTo(double x1, double y1);
  29.     void svgLineTo(FPointArray *i, double x1, double y1);
  30.     void svgCurveToCubic(FPointArray *i, double x1, double y1, double x2, double y2, double x3, double y3);
  31.     QPixmap createPreview(QString data);
  32.     void writeDefaults(QDomElement &ob);
  33.     QString createObjects(QString data);
  34.     ColorList PageColors;
  35.     bool FirstM, WasM, PathClosed;
  36.     double CurrX, CurrY, StartX, StartY, Conversion;
  37.     int PathLen;
  38. };
  39. #endif
  40.